package server.container;

import server.connector.Connector;
import server.life.Lifecycle;

import java.util.concurrent.Executor;

/**
 * 服务器表示整个Catalina Servlet容器以及其它组件，负责组装并启动Servlaet引擎,Tomcat连接
 * 器。Server通过实现Lifecycle接⼝，提供了⼀种优雅的启动和关闭整个系统的⽅式
 *
 * @author caiwei
 * @date 2020-10-11 23:52
 */
public interface Server  extends Lifecycle {
    void setServices(Service []services);

    Service[] findServices();

    void addConnector(Connector connector);

    Executor getExecutor();
}
